<%@ page session="true" contentType="text/html; charset=UTF-8" errorPage="/WEB-INF/jsp/pages/jspError.jsp"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><tiles:getAsString name="title" /></title>
<link rel="shortcut icon" href="./public/user_images/daigaole.ico" />
<link rel="icon" href="./public/user_images/daigaole.gif" type="image/gif" />

<link rel="stylesheet" type="text/css" href="./public/user_css/common.css"  />
<link rel="stylesheet" type="text/css" href="./public/user_css/master.css" />
<link rel="stylesheet" type="text/css" href="./public/user_css/ui-darkness/jquery-ui-1.7.2.custom.css" />
<link rel="stylesheet" type="text/css" href="./public/user_css/dialog.css" />
<link rel="stylesheet" type="text/css" href="./public/user_css/ymPrompt.css" />
<!-- 
<link rel="stylesheet" type="text/css" href="./public/user_css/lowerlist.css" /> -->
 
<script language="javascript" type="text/javascript" src="./public/user_js/jquery-1.4.2.min.js"></script>
<script language="javascript" type="text/javascript" src="./public/user_js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="./public/user_js/dialog.js"></script> 
<script type="text/javascript" src="./public/user_js/marquee.js"></script>
<script type="text/javascript" src="./public/user_js/ymPrompt.js"></script>
<script type="text/javascript" src="./public/user_js/overlib.js"></script> 
<script type="text/javascript" src="./public/user_js/UserControl.js"></script> 

<style>
*{margin:0;padding:0;}
#starlist {
position: absolute;
z-index: 20;
top: 0;
left:660px;
}
.vip_box ul li{list-style:none;marign:0;padding:0;line-height:28px;font-size:14px;padding-left:10px;color:#666;}
.vip_box{width:328px;height:216px;	background:url(./public/user_images/tc_bg.gif) no-repeat;text-align:left;padding:0 10px;}
.vip_box h1{height:25px;line-height:25px;font-size:16px;margin-bottom:10px;padding-top:25px;}
.vip_box h1 span{float:right;font-size:12px;font-weight:normal;}
.vip_box h1 span a,.vip_box h1 span a:hover{color:#F90;text-decoration:none;}
.zi{color:#f26103;font-weight:bold;}
</style>

</head>

<body>
<tiles:insert attribute="body-content-top" />
<SCRIPT LANGUAGE="JavaScript">
<!--
   
   var counter = 1;
   function autochange(){
        var ads_count = parseInt("1");
        if(counter < ads_count){
            counter = counter +1;
        }else{
            counter = 1;
        }
        for (var i = 1; i <= ads_count ; i++)
        { 
           $j("#no_"+i).hide();
        }
        $j("#no_"+counter).show();
       
        setTimeout("autochange()",25000);
  }
  function global()
  {
        $j.post("/Web/Common/getusercash.php",{type:"balance"},function(data){
            var data = eval("("+data+")");
            $j("#user_cash").html(data['user_cash']);
            if (document.getElementById("myuser_cash") != undefined) {
                $j("#myuser_cash").html(data['user_cash']);
            }
            if (document.getElementById("Indexuser_cash") != undefined) {
                $j("#Indexuser_cash").html(data['user_cash']);
            }
            if(data['changeaccounts'])
            {
                    $j('#drawprompt').html(data['changeaccounts']);
                    dialog("更改账户提醒","id:drawprompt","700px","auto","text");
            }
            if (document.getElementById("words_count") != undefined && data['words_count'] > 0) {
               $j('#words_count').html(data['words_count']);
              
               doTriStateRainbowLink();
               
            }else if (document.getElementById("words_count") != undefined && data['words_count'] <= 0) {
                $j('#words_count').html("0");
                doOnOff('off');
            }
            if(data['rechargetip'])
            {
                $j('#drawprompt').html(data['rechargetip']);
                dialog("充值提示","id:drawprompt","500px","auto","text");
            }
            if(data['tooltiptext'])
            {
                alert(data['tooltiptext']);
                location.reload();
            }
            if(data['payouts'])
            {
                $j('#drawprompt').html(data['payouts']);
                dialog("提款提示","id:drawprompt","500px","auto","text");
            }
        });
  }
  function finchange()
  {
        var ads_count = parseInt("1")-1;
        var current = Math.round(Math.random() * ads_count)+1;
        for (var i = 1; i <=parseInt("1"); i++)
        { 
           $j("#fi_"+i).hide();
        }
        $j("#fi_"+current).show();
        setTimeout("finchange()","3600000");
  }
  $j(function(){
      setInterval("global()",25000);
      var ads_count = parseInt("1");
      if (ads_count > 1) {
        setTimeout("autochange()",25000);
      }
  });
//-->

</SCRIPT>
<link rel="stylesheet" type="text/css" href="./public/user_css/detailshow.css" />
<script type="text/javascript" src="./public/user_js/detailshow.js"></script>

<div class="mainbody">
    <tiles:insert attribute="body-content-left" />
<script>
$j().ready(function() {
    if ($j("#words_count").html() > 0) {
        doTriStateRainbowLink();
    }
    
});
function selectCode(f){
    document.forms[f].elements[0].focus();
    document.forms[f].elements[0].select();
}

function doNada(){self.focus()}

// blink speed in miliseconds
var rate = 500;

// the three blink colors
var Color1 = "#FF0000";
var Color2 = "#00FF00";
var Color3 = "#FF00FF";
var Color4 = "#FFcc00";
var Color5 = "#00FFcc";
var Color6 = "#FF00cc";

// the color if/when turned off (no-blink color)
var ColorX = "#FFcc00";

// set this to true for auto start; else, false
var DoIt = true;

// do not edit below this line
// ---------------------------

bV  = parseInt(navigator.appVersion);
bNS = navigator.appName=="Netscape";
bIE = navigator.appName=="Microsoft Internet Explorer";
ok = false;

var i=0;
function doTriStateRainbowLink(){
   ok =  true;
   
   if ((bNS && bV >= 5) || (bIE && bV >= 4)){
      i++;

      if (i==1) C = Color1;
      if (i==2) C = Color2;
      if (i==3) C = Color3;
	  if (i==4) C = Color4;
      if (i==5) C = Color5;
      if (i==6) C = Color6;
      if (!DoIt) C = ColorX;       
      if (bIE) words_box.style.color=C;
      if (bNS) document.getElementById('words_box').style.color = C;
      if (i > 5) i = 0;
      if (DoIt) timer=setTimeout('doTriStateRainbowLink()', rate);
   }      
}


function doOnOff(a){
   if (ok){
      if (a =="off") {DoIt = false}
      if ((a =="on")&&(!DoIt)) {
          DoIt = true;
          doTriStateRainbowLink();
      }
   }
}

</script>

<tiles:insert attribute="body-content-right" />

</div>
<tiles:insert attribute="body-content-bot" />
</body>
</html>